<style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div id="content-container" class="container">
    <div class="row">
        <div class="col-md-3">
            {include file="common/sidenav" /}
        </div>
        <div class="col-md-9">
            <div class="panel panel-default panel-page">



{volist name="list" id="vo"}

        <div class="panel-heading">
                    <h2>未使用保单  {$vo.safe_years}年（{$vo.num}份）</h2>
                </div>
                <div class="panel-body" style="padding:0;"> 


                                        <div class="row">
                        <div class="col-md-5">
                            <a href="javascript:void(0);" >
                                <img class="img-responsive img-hover" src="{if $vo.insurance_company eq 'PINGAN'}/assets/img/zgpa.png{else if $vo.insurance_company eq 'PICC'}/assets/img/zgpa1.jpg{/if}" alt="">
                            </a>
                        </div>
                        <div class="col-md-6">
                            <h4>
                                <a href="javascript:void(0);">{if $vo.insurance_company eq 'PINGAN'}中国平安汽车GPS盗抢责任险{else if $vo.insurance_company eq 'PICC'}中国人民财产保险GPS

                                     <?php 
                                    if( $vo['type'] === "PZAH202042010000000051(NEW 10W)" || $vo['type'] =='PZAH202042010000000074(10W)'){
                                        echo '意外';
                                    }else{
                                        echo '盗抢';
                                    }
                                    ?>


                                    责任险{/if}
                                {$vo.type} </a> 
                            </h4> 
                            <p class="text-muted"><br/></p>  
                                              

                            <div  class="btn-group"><a class="btn btn-danger btn-refresh" href="/index/user/turnout.html?type={$vo.type}" data-name="ueditor" data-version="1.0.3"><i class="fa fa-refresh fa-fw"></i> 转出</a>
                                </div>
<div  class="btn-group">
{if $vo.num neq 0}
    <a class="btn btn-info btn-ajax " href="/index/product/detail.html?type=active&bdtype={$vo.type}" data-name="ueditor" data-version="1.0.3"><i class="fa fa-pencil fa-fw"></i> 激活</a>
{else}
 <a class="btn btn-info btn-ajax " href="javascript:active();" data-name="ueditor" data-version="1.0.3"><i class="fa fa-pencil fa-fw"></i> 激活</a>

{/if}

                                </div>

                                                    </div>
                    </div> 
                </div>

                    <hr>


{/volist}



 


                                        <div class="pager"></div>

            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    function active() {
        layer.msg('保单份数不足，请及时购买');
    }

</script>